function Mynew(func, ...args) {
    let obj = {};
    Object.create(obj, func.prototype);
    func.call(obj, ...args)
    return obj
}
function Setname(name, age) {
    this.name = name;
    this.age = age;
    console.log(this.name, this.age)
}

Mynew(Setname, "zk", 18)
new Setname('zk', 18)